<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->


<!DOCTYPE html
  PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-cn" xml:lang="zh-cn">
<head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="DC.Type" content="topic">
<meta name="DC.Title" content="步骤1：（可选）创建文件集模板">
<meta name="product" content="">
<meta name="DC.Relation" scheme="URI" content="Files-0008.html">
<meta name="prodname" content="">
<meta name="version" content="">
<meta name="brand" content="30-OceanProtect 备份一体机 1.5.0-1.6.0 帮助中心">
<meta name="DC.Publisher" content="20240320">
<meta name="prodname" content="csbs">
<meta name="documenttype" content="usermanual">
<meta name="DC.Format" content="XHTML">
<meta name="DC.Identifier" content="Files-0009">
<meta name="DC.Language" content="zh-cn">
<link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
<title>步骤1：（可选）创建文件集模板</title>
</head>
<body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px"><a name="Files-0009"></a><a name="Files-0009"></a>

<h1 class="topictitle1">步骤1：（可选）创建文件集模板</h1>
<div><p>如果您要对多个主机上的文件进行保护，且多个主机上要保护的文件路径相同、过滤规则等均相同，则可以参考本节创建文件集模板。通过模板可批量为多个主机创建文件集，提高配置效率。</p>
<div class="section"><h4 class="sectiontitle">操作步骤</h4><ol><li><span>选择<span class="uicontrol" id="Files-0009__zh-cn_topic_0000001839142377_uicontrol1535113494115">“<span id="Files-0009__zh-cn_topic_0000001839142377_text735434144116">保护</span> &gt; 文件系统 &gt; 文件集”</span>。</span><p><div class="note" id="Files-0009__zh-cn_topic_0000001839142377_note12707194325517"><img src="public_sys-resources/note_3.0-zh-cn.png"><span class="notetitle"> </span><div class="notebody"><p id="Files-0009__zh-cn_topic_0000001839142377_p370854395513">对于1.5.0版本，请选择<span class="uicontrol" id="Files-0009__zh-cn_topic_0000001839142377_uicontrol117931445568">“<span id="Files-0009__zh-cn_topic_0000001839142377_text197938425615">保护</span> &gt; 裸机 &gt; 文件集”</span>。</p>
</div></div>
</p></li><li><span>单击<span class="uicontrol">“<span>模板</span>”</span>。</span></li><li><span>单击<span class="uicontrol">“<span>创建</span>”</span>，创建模板。</span><p><p>相关参数说明如<a href="#Files-0009__zh-cn_topic_0000001172683312_table635115223177">表1</a>。</p>

<div class="tablenoborder"><a name="Files-0009__zh-cn_topic_0000001172683312_table635115223177"></a><a name="zh-cn_topic_0000001172683312_table635115223177"></a><table cellpadding="4" cellspacing="0" summary="" id="Files-0009__zh-cn_topic_0000001172683312_table635115223177" frame="border" border="1" rules="all"><caption><b>表1 </b>文件集模板参数</caption><colgroup><col style="width:16.99%"><col style="width:26.740000000000002%"><col style="width:56.269999999999996%"></colgroup><thead align="left"><tr><th align="left" class="cellrowborder" colspan="2" valign="top" id="mcps1.3.2.2.3.2.2.2.4.1.1"><p>参数</p>
</th>
<th align="left" class="cellrowborder" valign="top" id="mcps1.3.2.2.3.2.2.2.4.1.2"><p>说明</p>
</th>
</tr>
</thead>
<tbody><tr><td class="cellrowborder" colspan="2" valign="top" headers="mcps1.3.2.2.3.2.2.2.4.1.1 "><p><span>名称</span></p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.3.2.2.2.4.1.2 "><p>自定义模板名称，最长不能超过32个字符。</p>
</td>
</tr>
<tr><td class="cellrowborder" colspan="2" valign="top" headers="mcps1.3.2.2.3.2.2.2.4.1.1 "><p><span>操作系统</span></p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.3.2.2.2.4.1.2 "><p>选择要保护的文件集所在主机的操作系统类型。</p>
</td>
</tr>
<tr><td class="cellrowborder" colspan="2" valign="top" headers="mcps1.3.2.2.3.2.2.2.4.1.1 "><p><span>文件路径</span></p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.3.2.2.2.4.1.2 "><p>单击“<span>添加</span>”，输入要保护的文件的绝对路径，单击“确定”完成输入。</p>
<p>如果需要对多个不同路径下的文件进行保护，单击“<span>添加</span>”添加其他路径，最多支持添加64个路径，支持批量添加，以“,”分隔。</p>
</td>
</tr>
<tr><td class="cellrowborder" rowspan="2" valign="top" width="16.99%" headers="mcps1.3.2.2.3.2.2.2.4.1.1 "><p><span>过滤规则</span></p>
<p></p>
<p></p>
<p></p>
<p></p>
</td>
<td class="cellrowborder" valign="top" width="26.740000000000002%" headers="mcps1.3.2.2.3.2.2.2.4.1.1 "><p><span>文件</span></p>
</td>
<td class="cellrowborder" valign="top" width="56.269999999999996%" headers="mcps1.3.2.2.3.2.2.2.4.1.2 "><p>选择要包含或排除的文件，支持过滤的文件类型，请参考<a href="Files-0010.html#Files-0010__zh-cn_topic_0000001218047555_section875992475510">支持过滤的文件类型</a>。</p>
<p>过滤文件时，按照如下规则配置：</p>
<ul><li>输入文件的完整路径。</li><li>配置多个路径时，单击<span class="uicontrol">“<span>保存</span>”</span>后再填写新的路径。</li><li>路径中可包含通配符<strong>*</strong></li></ul>
</td>
</tr>
<tr><td class="cellrowborder" valign="top" headers="mcps1.3.2.2.3.2.2.2.4.1.1 "><p><span>目录</span></p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.3.2.2.2.4.1.1 "><p>选择要包含或排除的目录，单击<span class="uicontrol">“<span>保存</span>”</span>。</p>
<p>过滤目录时，按照如下规则配置：</p>
<ul><li>输入目录的完整路径。</li><li>配置多个路径时，单击<span class="uicontrol">“<span>保存</span>”</span>后再填写新的路径。</li><li>路径中可包含通配符<strong>*</strong></li></ul>
</td>
</tr>
</tbody>
</table>
</div>
<div class="note" id="Files-0009__zh-cn_topic_0000001172683312_note418821735818"><img src="public_sys-resources/note_3.0-zh-cn.png"><span class="notetitle"> </span><div class="notebody"><div class="p" id="Files-0009__zh-cn_topic_0000001172683312_p1162952215820">设置多个过滤规则时，可以通过以下原则判断最终生效结果：<ul id="Files-0009__zh-cn_topic_0000001172683312_ul86299228580"><li id="Files-0009__zh-cn_topic_0000001172683312_li15526150172217">仅存在包含条件时，多个包含条件之间是<span class="uicontrol" id="Files-0009__zh-cn_topic_0000001172683312_uicontrol1150415398234">“并”</span>的关系，即筛选出来的结果是所选条件的并集。</li><li id="Files-0009__zh-cn_topic_0000001172683312_li186794317268">仅存在排除条件时，多个排除条件之间是<span class="uicontrol" id="Files-0009__zh-cn_topic_0000001172683312_uicontrol1027319440268">“并”</span>的关系，即筛选出来的结果是所选条件的并集。</li><li id="Files-0009__zh-cn_topic_0000001172683312_li1862915229582">既有包含又有排除条件时，需在包含条件中判定排除。</li></ul>
</div>
</div></div>
</p></li><li><span>单击<span class="uicontrol">“<span>确定</span>”</span>。</span></li></ol>
</div>
<p></p>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>父主题：</strong> <a href="Files-0008.html">备份文件集</a></div>
</div>
</div>

<div class="hrcopyright"><hr size="2"></div><div class="hwcopyright">版权所有 &copy; 华为技术有限公司</div></body>
</html>